package HomeWorkNewYear;

public class ooDay01Car {
    String brand;
    String color;
    double price;
    int capacity;
    ooDay01Car(){
    }
    ooDay01Car(String brand,String color,double price,int capacity){
        this.brand=brand;
        this.color = color;
        this.price = price;
        this.capacity = capacity;
    }
    void start() {
        System.out.println(brand+"牌子"+color+"颜色"+capacity+"座的"+price+"价格的车启动了");
    }
    void run() {
        System.out.println(brand+"牌子"+color+"颜色"+capacity+"座的"+price+"价格的车跑起来了");
    }
    void stop() {
        System.out.println(brand+"牌子"+color+"颜色"+capacity+"座的"+price+"价格的车停下来了");
    }
}
